package com.googlecode.wannabet.domain;

import java.util.Date;

import com.google.appengine.api.datastore.Entity;

public class WannabetUser {
	
	private Long userID;
	
	private String name;
	
	private String email;
	
	private Double cash;
	
	private Date created;
	
	public static Entity getEntity(String userID, String email, String nickname) {
		Entity entity = new Entity(WannabetUser.class.getSimpleName());
		
		entity.setProperty("userID", userID);
		entity.setProperty("name", nickname);
		entity.setProperty("email", email);
		entity.setProperty("cash", 10000);
		entity.setProperty("created", new Date());
		
		return entity;
	}

	/**
	 * @return the userID
	 */
	public Long getUserID() {
		return userID;
	}

	/**
	 * @param userID the userID to set
	 */
	public void setUserID(Long userID) {
		this.userID = userID;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the email
	 */
	public String getEmail() {
		return email;
	}

	/**
	 * @param email the email to set
	 */
	public void setEmail(String email) {
		this.email = email;
	}

	/**
	 * @return the cash
	 */
	public Double getCash() {
		return cash;
	}

	/**
	 * @param cash the cash to set
	 */
	public void setCash(Double cash) {
		this.cash = cash;
	}

	/**
	 * @return the created
	 */
	public Date getCreated() {
		return created;
	}

	/**
	 * @param created the created to set
	 */
	public void setCreated(Date created) {
		this.created = created;
	}

}
